/*
 * Description: debug handler
 *    History: create at 20170805
 *     Author: lihan@mtncn.com
 */
package proto.message;

import java.util.List;

import proto.Micp;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;

public class DebugHandler extends CmdHandler {

	public DebugHandler()  {
		Micp.regHandleMap("debug", this);
	}
	
	@Override
	public void execute(Micp micp, ChannelHandlerContext cc) {
		
		System.out.println("debug body = ^" + micp.body + "$\n");
		
//		String resp = this.constructResponse(micp);
//      Channel c = cc.channel();
//      c.writeAndFlush(resp);
	}

	@Override
	public List<String> constructResponse(Micp micp) {
		String header =	"debug ok\n";
		return null;
	}

	@Override
	public String _praseXML(String reg, String xml) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
